package com.tutu.user.service;


import com.tutu.commons.entity.User;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Program: SpringCloud
 * @Description:
 * @Author: JK.TuTu
 * @ @Version: 1.0
 * @Create: 2022-12-01 12:45
 **/
public interface UserService {
    User getUserById(int uid);

    /**
     * 获取用户可以借阅的图书数量
     */
    int getUserNum(int uid);

    /**
     * 实现用户借阅图书
     */
    boolean userBorrow(int count,int uid);
}
